package com.lancoo.lancooknowledgecourseware;

import android.app.Application;
import android.content.Context;
import android.os.StrictMode;
import androidx.multidex.MultiDex;

import com.lancoo.cpbase.authentication.utils.ScopedStorageUtil;

/**
 * Created by pengmi on 2018/11/7.
 * Description:
 */

public class App extends Application{

    @Override
    public void onCreate() {
        super.onCreate();
        ScopedStorageUtil.init(this);
        StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
        .detectDiskReads()
        .detectDiskWrites()
        .detectNetwork()
        .penaltyLog()
        .build());
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }
}
